STEP 5: Now let's use our variable in a sentence.

Remember, we combine strings and string variables like this ("My favorite food is " + fav_food).

  • Use the .say() command that is already in your program to have the sprite say the user's favorite season.
  • Combine the string and variable so that the sprite says, "My favorite season is "
  • Use a plus sign + to add season to the end of the statement.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)